package com.guanyong.model;

/**
 * Created by mxk on 2017/9/19.
 */
public class KeyHuatiModel implements Comparable<KeyHuatiModel>{
    private  int id;
    private  int baseId;
    private  String name;
    private  String url;
    private  Integer readNum;
    private  String readNumStr;
    private  Integer discussNum;
    private  String discussNumStr;
    private  int  tab;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBaseId() {
        return baseId;
    }

    public void setBaseId(int baseId) {
        this.baseId = baseId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getReadNum() {
        return readNum;
    }

    public void setReadNum(Integer readNum) {
        this.readNum = readNum;
    }

    public String getReadNumStr() {
        return readNumStr;
    }

    public void setReadNumStr(String readNumStr) {
        this.readNumStr = readNumStr;
    }

    public Integer getDiscussNum() {
        return discussNum;
    }

    public void setDiscussNum(Integer discussNum) {
        this.discussNum = discussNum;
    }

    public String getDiscussNumStr() {
        return discussNumStr;
    }

    public void setDiscussNumStr(String discussNumStr) {
        this.discussNumStr = discussNumStr;
    }

    public int getTab() {
        return tab;
    }

    public void setTab(int tab) {
        this.tab = tab;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public int compareTo(KeyHuatiModel o) {
        return o.getReadNum().compareTo(this.getReadNum());
    }
}
